<?php $this->_compileInclude('header'); ?>
<body>
<div class="container-fluid">
	<div class="row-fluid">
		<div class="pages">
            <?php $this->_compileInclude('examnav'); ?>
			<div class="content">
				<div class="col-xs-12">
					<div class="content-box padding">
						<h2 class="title">
							正式考试
							<a href="index.php?exam-app-exam" class="badge pull-right">返回考试</a>
						</h2>
						<ul class="list-unstyled list-img">
							<li class="border">
								<div class="desc">
									<table class="table table-bordered table-hover">
										<tr class="info">
											<td>答题记录</td>
											<td width="160">答题时间</td>
											<td width="80">用时</td>
											<td width="90">得分</td>
										</tr>
										<?php $eid = 0;
 foreach($this->tpl_var['exams']['data'] as $key => $exam){ 
 $eid++; ?>
										<tr>
											<td><?php echo $exam['ehexam']; ?></td>
											<td><?php echo date('Y-m-d H:i:s',$exam['ehstarttime']); ?></td>
											<td><?php if($exam['ehtime'] >= 60){ ?><?php if($exam['ehtime']%60){ ?><?php echo intval($exam['ehtime']/60)+1; ?><?php } else { ?><?php echo intval($exam['ehtime']/60); ?><?php } ?>分钟<?php } else { ?><?php echo $exam['ehtime']; ?>秒<?php } ?></td>
											<td>
												<b>
													<?php if(!$exam['ehstatus'] && $exam['ehdecide']){ ?>
													评分中
													<?php } elseif($this->tpl_var['data']['currentbasic']['basicexam']['notviewscore']){ ?>
													待公布
                                                    <?php } else { ?>
													<?php echo $exam['ehscore']; ?>
													<?php } ?>
												</b>
											</td>
										</tr>
										<?php } ?>
									</table>
								</div>
							</li>
						</ul>
                        <?php if($this->tpl_var['exams']['pages']){ ?>
						<ul class="pagination pull-right"><?php echo $this->tpl_var['exams']['pages']; ?></ul>
                        <?php } ?>
					</div>
				</div>
			</div>
            <?php $this->_compileInclude('footer'); ?>
		</div>
	</div>
</div>
</body>
</html>